package com.smart.manager.pop.entities.models;

import com.smart.common.entities.core.BaseLongModel;
import com.smart.manager.member.entities.enums.PropsKind;
import com.smart.manager.member.entities.views.MemberView;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;


/**
 * 活动管理  钻石兑换流水
 * @author leo
 * @date 2023/09/07
 */
@EqualsAndHashCode(callSuper = true)
@Entity
@Data
@Accessors(chain = true)
public class PopBasicDiamondLogs extends BaseLongModel {

    @ApiModelProperty(value = "兑换人")
    @ManyToOne
    @JoinColumn(name = "member", referencedColumnName = "id")
    private MemberView member;

    @ApiModelProperty("礼包代码")
    private String code;

    @ApiModelProperty("礼包名称")
    private String name;
    @ApiModelProperty("礼包类型")
    private PropsKind kind;

    @ApiModelProperty("数量")
    private Integer quantity;

    @ApiModelProperty("礼包说明")
    private String description;

}
